import org.junit.Test;

import java.io.*;

public class test {
    @Test
    public void test() throws IOException {
        BufferedReader bufferedReader = new BufferedReader(new FileReader("src/main/resources/ms.lua"));
        String b;
        while ((b = bufferedReader.readLine())!=null){
            System.out.println(b);
        }
    }

    @Test
    public  void getScript(){
        BufferedReader bufferedReader = null;
        try {
            bufferedReader = new BufferedReader(new FileReader("src/main/resources/ms.lua"));
            String b;
            StringBuffer temp = new StringBuffer();
            while ((b = bufferedReader.readLine())!=null){
                temp.append(b+'\n');//!!!!!!不然会导致end和return连在一起
            }
            System.out.println(temp.toString());
        } catch (IOException e) {
            e.printStackTrace();
        }
        //return "";
    }
}
